package com.etc.medical.client;

import com.etc.common.entity.BasicDoctor;
import com.etc.common.utils.Result;
import com.etc.medical.breaker.BasicDoctorBreak;
import org.springframework.cloud.openfeign.FeignClient;
import org.springframework.web.bind.annotation.*;


/**
 * @author 29322
 */
@FeignClient(value = "sp-doctor",fallback = BasicDoctorBreak.class)
public interface BasicDoctorClient {
    @RequestMapping("/doc/queryData")
    Result queryData(@RequestParam("docId") String docId);

    @RequestMapping(value = "/doc/queryAll")
    Result queryAll(@RequestParam("pageNum") Integer pageNum, @RequestParam("pageSize") Integer pageSize);

    @RequestMapping(value = "/doc/update",method = RequestMethod.POST)
    Result update(BasicDoctor doctor);

    @RequestMapping(value = "/doc/updateStatus",method = RequestMethod.POST)
    Result updateStatus(@RequestParam("docId") String docId);
}
